package com.example.springboot.json.entity;

import com.alibaba.fastjson.annotation.JSONField;

import java.util.Date;

public class User {

	private String id;
	private String userName;
	private String password;
	@JSONField(format="yyyy-MM-dd")
	private Date createTime;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@Override
	public String toString() {
		return "User{" +
				"id='" + id + '\'' +
				", userName='" + userName + '\'' +
				", password='" + password + '\'' +
				", createTime=" + createTime +
				'}';
	}
}
